﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    public class MESTransferBinDto
    {
        /// <summary>
        /// 库存转移单号
        /// </summary>
        public string orderCode { get; set; }

        /// <summary>
        /// 公司编码
        /// </summary>
        public string companyCode { get; set; }

        /// <summary>
        /// 公司名称 
        /// </summary>
        public string companyName { get; set; }

        /// <summary>
        /// 移动类型编码
        /// </summary>
        public string moveCode { get; set; }

        /// <summary>
        /// 移动类型名称
        /// </summary>
        public string moveName { get; set; }

        /// <summary>
        /// 凭证⽇期
        /// </summary>
        public DateTime voucherDate { get; set; }

        /// <summary>
        /// List
        /// </summary>
        List<MESTransferBinDetailDto> items { get; set; } = new List<MESTransferBinDetailDto> { };


    }

    public class MESTransferBinDetailDto
    {
        /// <summary>
        /// ⾏项⽬
        /// </summary>
        public decimal itemNum { get; set; }

        /// <summary>
        /// 源单⾏项⽬
        /// </summary>
        public decimal sourceOrderItemCode { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string goodsCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string goodsName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string goodsSpec {  get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string batchNum { get; set; }

        /// <summary>
        /// 转移数量
        /// </summary>
        public decimal transferNum { get; set; }

        /// <summary>
        /// 库存单位编码
        /// </summary>
        public string stockUnitCode { get; set; }

        /// <summary>
        /// 库存单位名称
        /// </summary>
        public string stockUnitName { get; set; }

        /// <summary>
        /// 原⼯⼚编码
        /// </summary>
        public string sourceFactoryCode { get; set; }

        /// <summary>
        /// 原⼯⼚名称
        /// </summary>
        public string sourceFactoryName { get; set; }

        /// <summary>
        /// 原库存地点编码
        /// </summary>
        public string sourceStockAddrCode { get; set; }

        /// <summary>
        /// 原库存地点名称
        /// </summary>
        public string sourceStockAddrName { get; set; }

        /// <summary>
        /// ⽬标⼯⼚编码
        /// </summary>
        public string targetFactoryCode { get; set; }

        /// <summary>
        /// ⽬标⼯⼚名称
        /// </summary>
        public string targetFactoryName { get; set; }

        /// <summary>
        /// ⽬标库存地点编码
        /// </summary>
        public string targetStockAddrCode { get; set; }

        /// <summary>
        /// ⽬标库存地点名称
        /// </summary>
        public string targetStockAddrName { get; set; }
    }
}
